package com.solution.admin.point.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.solution.common.entity.BaseEntity;

/**
 * 积分日志信息实体类
 * 
 * @author xu_cc
 * @date 2017-10-20 14:18:04
 */
public class PointLogEntity extends BaseEntity {
    private static final long serialVersionUID = -3926291988306842687L;

    /**
     * 客户ID
     */
    private Long customerId;
    
    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 操作类型
     */
    private String operateType;

    /**
     * 操作标识（1=加，0=减）
     */
    private Integer operateFlag;

    /**
     * 操作积分
     */
    private BigDecimal operatePoint;

    /**
     * 操作前积分值
     */
    private BigDecimal beforePoint;

    /**
     * 操作后积分值
     */
    private BigDecimal afterPoint;

    /**
     * 调整原因
     */
    private String adjustReason;

    /**
     * 单据号(如：订单号)
     */
    private String billCode;

    /**
     * 单据时间
     */
    private Date billTime;

    /**
     * 操作时间
     */
    private Date operateTime;

    /**
     * 操作人
     */
    private String operateUser;

    public PointLogEntity() {
    }

    /**
     * 初始化日志
     * 
     * @author xu_cc
     * @date 创建时间：2017年10月23日 上午11:10:07
     * @param customerId
     * @param operateType
     * @param operateFlag
     * @param beforePoint
     * @param operatePoint
     * @param afterPoint
     * @param adjustReason
     * @param billCode
     * @param billTime
     * @param operateUser
     */
    public PointLogEntity(Long customerId, String operateType, Integer operateFlag, BigDecimal beforePoint, BigDecimal operatePoint,
            BigDecimal afterPoint, String adjustReason, String billCode, Date billTime, String operateUser) {
        this.customerId = customerId;
        this.operateType = operateType;
        this.operateFlag = operateFlag;
        this.beforePoint = beforePoint;
        this.operatePoint = operatePoint;
        this.afterPoint = afterPoint;
        this.adjustReason = adjustReason;
        this.billCode = billCode;
        this.billTime = billTime;
        this.operateUser = operateUser;
    }

    /**
     * @return the customerId
     */
    public Long getCustomerId() {
        return customerId;
    }

    /**
     * @param customerId
     *            the customerId to set
     */
    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    /**
     * @return the operateType
     */
    public String getOperateType() {
        return operateType;
    }

    /**
     * @param operateType
     *            the operateType to set
     */
    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    /**
     * @return the operateFlag
     */
    public Integer getOperateFlag() {
        return operateFlag;
    }

    /**
     * @param operateFlag
     *            the operateFlag to set
     */
    public void setOperateFlag(Integer operateFlag) {
        this.operateFlag = operateFlag;
    }

    /**
     * @return the operatePoint
     */
    public BigDecimal getOperatePoint() {
        return operatePoint;
    }

    /**
     * @param operatePoint
     *            the operatePoint to set
     */
    public void setOperatePoint(BigDecimal operatePoint) {
        this.operatePoint = operatePoint;
    }

    /**
     * @return the beforePoint
     */
    public BigDecimal getBeforePoint() {
        return beforePoint;
    }

    /**
     * @param beforePoint
     *            the beforePoint to set
     */
    public void setBeforePoint(BigDecimal beforePoint) {
        this.beforePoint = beforePoint;
    }

    /**
     * @return the afterPoint
     */
    public BigDecimal getAfterPoint() {
        return afterPoint;
    }

    /**
     * @param afterPoint
     *            the afterPoint to set
     */
    public void setAfterPoint(BigDecimal afterPoint) {
        this.afterPoint = afterPoint;
    }

    /**
     * @return the adjustReason
     */
    public String getAdjustReason() {
        return adjustReason;
    }

    /**
     * @param adjustReason
     *            the adjustReason to set
     */
    public void setAdjustReason(String adjustReason) {
        this.adjustReason = adjustReason;
    }

    /**
     * @return the billCode
     */
    public String getBillCode() {
        return billCode;
    }

    /**
     * @param billCode
     *            the billCode to set
     */
    public void setBillCode(String billCode) {
        this.billCode = billCode;
    }

    /**
     * @return the billTime
     */
    public Date getBillTime() {
        return billTime;
    }

    /**
     * @param billTime
     *            the billTime to set
     */
    public void setBillTime(Date billTime) {
        this.billTime = billTime;
    }

    /**
     * @return the operateTime
     */
    public Date getOperateTime() {
        return operateTime;
    }

    /**
     * @param operateTime
     *            the operateTime to set
     */
    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    /**
     * @return the operateUser
     */
    public String getOperateUser() {
        return operateUser;
    }
    
    /**
     * @param operateUser
     *            the operateUser to set
     */
    public void setOperateUser(String operateUser) {
        this.operateUser = operateUser;
    }
    
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
}
